//
//  TTCalculatorViewController.m
//  TaoTuo
//
//  Created by admin on 2020/2/4.
//  Copyright © 2020 admin. All rights reserved.
//

#import "TTCalculatorViewController.h"
#import "TTCalculatorView.h"


@interface TTCalculatorViewController ()

@property (nonatomic, strong) TTCalculatorView *calculatorView;

@end

@implementation TTCalculatorViewController

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"whitebg"] forBarMetrics:UIBarMetricsDefault];
    self.navigationController.navigationBar.shadowImage = [UIImage new];
    
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
//    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"whitebg"] forBarMetrics:UIBarMetricsDefault];
    self.navigationController.navigationBar.shadowImage = [UIImage imageNamed:@"shadowImage"];
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"计算器";
    _calculatorView = [[TTCalculatorView alloc] initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height - StatusBarAndNavBar_Height - Tabbar_Bottom_height)];
    [self.view addSubview:_calculatorView];
    
}



@end
